package org.zcl.字符操作与数据计算.字符编码;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;

/**
 * @PROJECT_NAME: bfd-cms
 * @DESCRIPTION:
 * @USER: ZhuChengLin
 * @DATE: 2021/11/11 16:39
 */
public class GetByte {
    public static void main(String[] args) {
        byte[] str = {'A', 'a', '0'}, dst;
        try {
            dst = new String(str, "GBK").getBytes(StandardCharsets.UTF_8);
            System.out.println(Arrays.toString(dst));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }

        char foo = '中';
        int 时间 = 1;
        System.out.println(时间);
    }
}
